package com.corechina.apex_osswords.domain.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.corechina.apex_osswords.domain.entity.CoreEquipmentCheck;
import com.corechina.apex_osswords.domain.vo.CoreEquipmentCheckVo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * <p>
 * 设备类型检查项表 Mapper 接口
 * </p>
 *
 * @author cc
 * @since 2023-03-09
 */
@Component
public interface CoreEquipmentCheckMapper extends BaseMapper<CoreEquipmentCheck> {

    List<CoreEquipmentCheckVo> getList(@Param("equipmentType") Integer equipmentType, @Param("name") String name, @Param("enterpriseId") Integer enterpriseId);

    @Delete("delete from core_equipment_check where equipment_type = #{equipmentType}")
    int deleteByEquipmentType(@Param("equipmentType") Integer equipmentType);

}
